<?php
/**
 *	Data Model of Records Attachments.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			13.03.2007
 *	@version		0.1
 */
/**
 *	Data Model of Records Attachments.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			13.03.2007
 *	@version		0.1
 */
class Model_Attachment extends Framework_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int		attachment_id		ID of Attachment
	 *	@return		void
	 */
	function __construct( $attachment_id = false )
	{
		$tablename	= 'attachments';
		$fields	= array (
			'attachment_id',
			'uri',
			'title',
			'description',
			'timestamp',
			);
		$primary_key	= 'attachment_id';
		$indices = array();
		parent::__construct( $tablename, $fields, $primary_key, $$primary_key );
		$this->setIndices( $indices );
	}
}
?>
